package protocol;

import java.util.HashMap;
import java.util.Map;

import com.google.gson.Gson;

import base.BaseProtocol;
import bean.AppInfoBean;

/**
 * 详情的网络连接类
 * 
 * @author Anson-pc
 * 
 */
public class DetailProtocol extends BaseProtocol<AppInfoBean> {

	private String mPackageName;

	public DetailProtocol(String mPackageName) {
		super();
		this.mPackageName = mPackageName;
	}

	/*@Override
	protected AppInfoBean parseJsonString(String jsonString) {
		// 创建一个Gson 对象解析
		Gson gson = new Gson();
		return gson.fromJson(jsonString, AppInfoBean.class);
	}*/

	@Override
	protected String getInterceKey() {
		return "detail";
	}

	@Override
	protected Map<String, String> getExtraParams() {
		Map<String, String> extraParams = new HashMap<String, String>();
		extraParams.put("packageName", mPackageName);
		return extraParams;
	}
}
